package com.tjp.subject.domain.convert;


import com.tjp.subject.domain.entity.SubjectCategoryBO;
import com.tjp.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @program: jz-club
 * @description: SubjectCategoryBO转换接口
 * @author: aaronTang
 * @create: 2024-02-22
 */
@Mapper
public interface SubjectCategoryConverter {
    SubjectCategoryConverter INSTANCE = Mappers.getMapper(SubjectCategoryConverter.class);

    SubjectCategory boToEntity(SubjectCategoryBO subjectCategoryBO);

    List<SubjectCategoryBO> entityToBOList(List<SubjectCategory> list);

    SubjectCategory convertBOToCategoryEntity(SubjectCategoryBO subjectCategoryBO);
}
